package com.yonyougov.cruxtestcase.testcase.user;

import com.yonyougov.cruxtestcase.basecase.BaseCase;
import com.yonyougov.cruxtestcase.dto.BaseResponseDto;
import com.yonyougov.cruxtestcase.dto.BaseTestReqDto;
import com.yonyougov.cruxtestcase.testcase.user.dto.PermissionResourceDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/api/uc/check/query")
public class CheckPermissionController implements BaseCase {

    @Autowired
    private RoleOrgService roleOrgService;

    @Override
    public String getName() {
        return "权限反查接口";
    }

    @Override
    public String getRemark() {
        return "权限反查接口";
    }

    @Override
    public BaseResponseDto testcase(BaseTestReqDto baseDto) {
        return null;
    }

    @GetMapping("/testcase")
    public BaseResponseDto testcase(PermissionResourceDto baseDto) {
        return roleOrgService.caseThree(baseDto);
    }

}
